package com.ruoyi.share.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单对象 share_order_form
 *
 * @author ruoyi
 * @date 2021-11-16
 */
public class ShareOrderForm extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单id */
    private Long id;

    /** 订单编号 */
    @Excel(name = "订单编号")
    private String orderCode;

    /** 商品id */
    @Excel(name = "商品id")
    private Long goodsId;

    /** 地址 */
    @Excel(name = "地址")
    private String address;

    /** 内容 */
    @Excel(name = "内容")
    private String content;

    /** 金额 */
    @Excel(name = "金额")
    private BigDecimal money;

    /** 付款方式 ： 0支付宝，1微信，2银行卡 */
    @Excel(name = "付款方式 ： 0支付宝，1微信，2银行卡")
    private Integer paymentMethod;

    /** 支付状态：0未支付 ，1已支付 */
    @Excel(name = "支付状态：0未支付 ，1已支付")
    private Integer payStatus;

    /** 是否分销 0未分销，1已分销 */
    @Excel(name = "是否分销 0未分销，1已分销")
    private Integer distributionStatus;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createDate;

    /** 修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updateDate;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setOrderCode(String orderCode)
    {
        this.orderCode = orderCode;
    }

    public String getOrderCode()
    {
        return orderCode;
    }
    public void setGoodsId(Long goodsId)
    {
        this.goodsId = goodsId;
    }

    public Long getGoodsId()
    {
        return goodsId;
    }
    public void setAddress(String address)
    {
        this.address = address;
    }

    public String getAddress()
    {
        return address;
    }
    public void setContent(String content)
    {
        this.content = content;
    }

    public String getContent()
    {
        return content;
    }
    public void setMoney(BigDecimal money)
    {
        this.money = money;
    }

    public BigDecimal getMoney()
    {
        return money;
    }
    public void setPaymentMethod(Integer paymentMethod)
    {
        this.paymentMethod = paymentMethod;
    }

    public Integer getPaymentMethod()
    {
        return paymentMethod;
    }
    public void setPayStatus(Integer payStatus)
    {
        this.payStatus = payStatus;
    }

    public Integer getPayStatus()
    {
        return payStatus;
    }
    public void setDistributionStatus(Integer distributionStatus)
    {
        this.distributionStatus = distributionStatus;
    }

    public Integer getDistributionStatus()
    {
        return distributionStatus;
    }
    public void setCreateDate(Date createDate)
    {
        this.createDate = createDate;
    }

    public Date getCreateDate()
    {
        return createDate;
    }
    public void setUpdateDate(Date updateDate)
    {
        this.updateDate = updateDate;
    }

    public Date getUpdateDate()
    {
        return updateDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderCode", getOrderCode())
            .append("goodsId", getGoodsId())
            .append("address", getAddress())
            .append("content", getContent())
            .append("money", getMoney())
            .append("paymentMethod", getPaymentMethod())
            .append("payStatus", getPayStatus())
            .append("distributionStatus", getDistributionStatus())
            .append("createDate", getCreateDate())
            .append("updateDate", getUpdateDate())
            .toString();
    }
}
